package com.ruoyi.biz.api.system;

import com.ruoyi.biz.api.system.factory.RemoteAreaFallbackFactory;
import com.ruoyi.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import static com.ruoyi.biz.api.constants.Constants.HOST;

@FeignClient(name = "remoteAreaService", url = HOST, fallback = RemoteAreaFallbackFactory.class)
public interface RemoteAreaService {

    @GetMapping("/api/v1/system/area/getDeptId/{areaId}")
    R<Long> getDeptIdByAreaCode(@PathVariable(name = "areaId") String areaId);

}
